package dto

import "gitee.com/song-yao-shun/MQH/model"

type UserDto struct {
	Name string `json:"name"`
	Telephone string `json:"telephone"`
}

// 定义转换函数
func ToUserDto(user model.User)UserDto{
	return UserDto{
		Name:		user.Name,
		Telephone: 	user.Telephone,
	}
}